enum ItemStyle {
  text(0),
  icon(1),
  link(2),
  emote(3),
  gradient(4);

  final int value;
  const ItemStyle(this.value);

  static ItemStyle? valueOf(int value) {
    return ItemStyle.values.firstWhere(
      (style) => style.value == value,
      orElse: () => null as ItemStyle,
    );
  }
}
